home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Other Langs / Tickle-4.0 (tcl) / library / help / tcl / files / read_file < prev    next >
Encoding:
Text File  |  1993-10-26  |  562 b   |  12 lines  |  [TEXT/$Tcl]

  1.  
  2.  
  3.           read_file ?-nonewline? fileName
  4.                read_file fileName numBytes
  5.                This proecure reads the file fileName and  returns  the
  6.                contents as a string.  If -nonewline is specified, then
  7.                the last character of the file is discarded if it is  a
  8.                newline.   The  second  form specifies exactly how many
  9.                bytes will be read and returned, unless there are fewer
  10.                than numBytes bytes left in the file; in this case, all
  11.                the remaining bytes are returned.
  12.